package club.sanmubird.springboot_simpledb.web.service;

import club.sanmubird.springboot_simpledb.web.entity.User;
import io.github.biezhi.anima.Anima;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @program: springboot_simpledb
 * @description: user service
 * @author: sam
 * @create: 2018-07-18 01:35
 * @update: 2018-07-18 01:35
 * @update: Sam
 **/
@Service
public class UserService {

	@Autowired
	private User user;

	public List<User> getAllUsers(){
		return Anima.select().from(User.class).all();
	}

}
